home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Diamond Collection
/
The Diamond Collection (Software Vault)(Digital Impact).ISO
/
cdr38
/
craps203.zip
/
CRAPS.WCX
(
.txt
)
< prev
next >
Wrap
Wildcat! WCX
|
1995-02-25
|
9KB
|
762 lines
'! Decompiled with wccNosy version 4.20f (freeware)
'! Input File: in.wcx 8647 bytes 01/29/123 04:18:16pm
'! Code Segment Size :6364 bytes
'! Data Segment Size :5388 bytes
'! String Segment Size:2283 bytes
'! Compiled with WCC version 4.01
Declare Function Func6275 As Integer
Dim i4463 As Integer
Dim i4465 As Integer
Dim i4467 As Integer
Dim i4469 As Integer
Dim i4471 As Integer
Dim i4473 As Integer
Dim i4500 As Integer
Dim i4502 As Integer
Dim s4504 As String*30
Dim s4534 As String*25
Dim s4559 As String*10
Dim s4651 As String*6
Dim i4657 As Integer
Dim i4659 As Integer
Dim i4661 As Integer
Dim i4663 As Integer
Dim i4665 As Integer
Dim i4667 As Integer
Dim s4669 As String*80
Dim s4749 As String*80
Dim dt4829 As DateTime
Dim i4837 As Integer
Dim i4839 As Integer
Dim s4841 As String*10
Dim s4851 As String*4
Dim s4855 As String*4
Dim i4859 As Integer
Dim s4861 As String*31
Dim s4892 As String*35
Dim s4927 As String*56
Dim s4983 As String*80
Dim i5063 As Integer
Dim s5065 As String*10
Dim s5075 As String*30
Dim i5105 As Integer
Dim s5107 As String
Dim s5111 As String
Dim s5115 As String
Dim s5119 As String
Dim sp5123 As SecurityProfile
Dim i5364 As Integer
Dim s5366 As String
Dim s5370 As String
Dim s5374 As String
Dim s5378 As String
Dim i5382 As Integer
Dim s5384 As String
Dim l65520_ As Long
Dim i65524_ As Integer
Dim i65526_ As Integer
Dim i65528_ As Integer
Dim i65530_ As Integer
Dim i65532_ As Integer
Dim i65534_ As Integer
s4861 = "Support the Shareware concept."
s4892 = "Help support " + MakeWild.BBSName + "."
s4927 = "Ask " + MakeWild.SysopName + " how to SPONSOR this game."
i4500 = 0
i4502 = 0
i4837 = 0
s4651 = "false"
i5105 = 0
CurrentDateTime dt4829
s4669 = NodeInfo.CallersName + " entered CRAPS door at " + FormatTime(dt4829.T, "Hh:MM:Ss") + "."
ActivityLog s4669
If Exists(ProgPath + "CRAPS005.BBS") Then
Cls
Print DefColor
DisplayTextFile(ProgPath + "CRAPS005.BBS")
Locate 4, 57
Color 3, 0
Print "BY Mike & Sandy Atwood"
Locate 6, 60
Color 3, 0
Print "My Home BBS!"
Locate 7, 60
Color 3, 0
Print "Augusta, GA"
Locate 8, 60
Color 3, 0
Print "(706)-790-4534"
Else
345 Cls
Print DefColor
Print "CRAPS005.BBS not found."
Beep
Delay 0.25
Beep
Delay 0.25
Beep
Delay 2
End
End If
398 i4663 = FreeFile
If i4663 = 0 Then
Cls
Print DefColor
Print "Not enough files available to run CRAPS!"
Print "Increase the numbers of files in your CONFIG.SYS and try again."
Beep
Delay 0.25
Beep
Delay 0.25
Beep
Delay 4
End
Else
488 Open ProgPath + "CRAPS.CFG" For Input As i4663
Input #i4663, s4534
Input #i4663, s4504
Input #i4663, s4559
Input #i4663, s4851
Input #i4663, i4667
Input #i4663, s4855
Input #i4663, i4859
Input #i4663, i5063
Close i4663
End If
617 If UCase(Trim(s4534)) <> UCase(Trim(MakeWild.SysopName)) Then
Cls
Print DefColor
Print "CRAPS.CFG line 1 incorrect."
Print "Enter the SysOp name EXACTLY as it appears in Makewild."
Beep
Delay 0.25
Beep
Delay 0.25
Beep
Delay 3
End
Else
721 If UCase(Trim(s4504)) <> UCase(Trim(MakeWild.BBSName)) Then
Cls
Print DefColor
Print "CRAPS.CFG line 2 incorrect."
Print "Enter the BBS name EXACTLY as it appears in Makewild."
Beep
Delay 0.25
Beep
Delay 0.25
Beep
Delay 3
End
End If
End If
819 s5107 = Str(Asc(LCase(Left(Left(s4534, 2), 1))))
s5111 = Str(Asc(LCase(Right(Left(s4534, 2), 1))))
s5115 = Str(Asc(LCase(Left(Left(s4504, 2), 1))))
s5119 = Str(Asc(LCase(Right(Left(s4504, 2), 1))))
s4841 = Str(Val(s5107 + s5111) + Val(s5115 + s5119))
If s4841 = s4559 Then
s4651 = "true"
End If
1003 If s4651 = "false" Then
Locate 12, 1
Color 13, 0
Print Tab(40 - Len("<<<<< UNREGISTERED >>>>>") Div 2); "<<<<< UNREGISTERED >>>>>"
Locate 13, 1
Print Tab(40 - Len(" EVALUATION COPY") Div 2); " EVALUATION COPY"
Locate 15, 1
Color 14, 0
Print Tab(40 - Len(s4861) Div 2); s4861
Locate 16, 1
Print Tab(40 - Len(s4892) Div 2); s4892
Locate 17, 1
Print Tab(40 - Len(s4927) Div 2); s4927
Locate 20, 1
Color 15, 0
Print Tab(40 - Len("This 15 second delay goes away with registration.") Div 2); "This 15 second delay goes away with registration."
Delay 14.75
Locate 23, 1
Beep
Delay 0.25
WaitEnter
Else
1303 Locate 14, 1
Color 13, 0
Print Tab(40 - Len("This game is REGISTERED to:") Div 2); "This game is REGISTERED to:"
Locate 17, 1
Color 10, 0
Print Tab(40 - Len(MakeWild.BBSName) Div 2); MakeWild.BBSName
Locate 18, 1
Print Tab(40 - Len(MakeWild.SysopName) Div 2); MakeWild.SysopName
Locate 19, 1
Print Tab(40 - Len(MakeWild.Phone) Div 2); MakeWild.Phone
Locate 23, 1
Print DefColor
WaitEnter
End If
1510 If GetSecProfile(sp5123, NodeInfo.Security) Then
i4839 = sp5123.DailyTimeLimit
End If
1542 If s4651 = "true" And s4855 = "yes" Then
i4837 = i4839 + i4859
Else
1599 i4837 = i4839 + 30
End If
1613 If s4651 = "true" And s4851 = "yes" Then
i4473 = Int(i4837 Div i4667)
Else
1674 i4473 = Int(i4837 Div 5)
End If
1692 i4663 = FreeFile
Open ProgPath + "daily.lst" For Input As i4663
Input #i4663, s5065
Close i4663
If s5065 <> FormatDate(dt4829.D, "Mm/dd/yyyy") Then
Del ProgPath + "daily.lst"
i4665 = FreeFile
Open ProgPath + "daily.lst" For Output As i4665
Print #i4665, FormatDate(dt4829.D, "Mm/dd/yyyy")
End If
1841 Reset
i4663 = FreeFile
Open ProgPath + "daily.lst" For Input As i4663
1880 Do While Not EOF(i4663)
Input #i4663, s5075
If s5075 = NodeInfo.CallersName Then
i5105 = i5105 + 1
End If
1946 Loop
1952 Close i4663
i5364 = i5063 - i5105
i65534_ = i5364
If i65534_ = i5364 = 2 Then
s5366 = "You may enter this door 1 more time today."
Else
2024 s5366 = "You May enter this door " + Str(i5364) + " more times today."
End If
2050 Cls
Locate 12, 1
Color 10, 0
Print Tab(40 - Len(s5366) Div 2); s5366
Delay 2
s5370 = "Sorry, you can only enter this door " + Str(i5063) + " times a day!"
s5374 = "Try again tomorrow."
If i5105 = i5063 Then
Cls
Locate 12, 1
Color 13, 0
Beep
Delay 0.25
Beep
Delay 0.25
Beep
Print Tab(40 - Len(s5370) Div 2); s5370
Print Tab(40 - Len(s5374) Div 2); s5374
Delay 2
Reset
End
End If
2264 If Exists(ProgPath + "CRAPS006.BBS") Then
DisplayTextFile(ProgPath + "CRAPS006.BBS")
Else
2303 Cls
Print DefColor
Print "CRAPS006.BBS not found."
Beep
Delay 0.25
Beep
Delay 0.25
Beep
Delay 2
End
End If
Do
2356 Locate 17, 30
Color 9, 0
Print "What'll it be boss? ";
Input i4661
i65532_ = i4661
If i65532_ = 1 Then
i4665 = FreeFile
Open ProgPath + "daily.lst" For Append As i4665
Print #i4665, NodeInfo.CallersName
Close i4665
GoTo 2736
GoTo 2736
End If
2484 If i65532_ = 2 Then
If Exists(ProgPath + "craps.hlp") Then
DisplayTextFile(ProgPath + "craps.hlp")
Else
2538 Cls
Print DefColor
Print " CRAPS.HLP not found."
Beep
Delay 0.25
Beep
Delay 0.25
Beep
Delay 2
End If
2590 GoTo 2264
GoTo 2736
End If
2602 If i65532_ = 3 Then
GoSub 4689
GoTo 2736
End If
2629 If i65532_ = 4 Then
Cls
CurrentDateTime dt4829
s5378 = NodeInfo.CallersName + " logged off from CRAPS door at " + FormatTime(dt4829.T, "Hh:MM:Ss") + "."
ActivityLog s5378
Goodbye 1213417543
GoTo 2736
End If
2719 Beep
Delay 0.25
Loop
Do
2736 GoSub 5092
Locate 19, 13
Color 9, 0
If (Func6275 <> 13) = 0 Then GoTo 2777
Loop
2777
2801 For i4463 = 1 To i4473 Step 1
GoSub 3269
Delay 1
i65530_ = i4465
If i65530_ = 2 Then GoTo 2920
If i65530_ = 3 Then GoTo 2920
If i65530_ = 12 Then
2920 GoSub 4978
Cls
Print DefColor
GoSub 5092
GoSub 5992
Else
2954 If i65530_ = 7 Then GoTo 2984
If i65530_ = 11 Then
2984 GoSub 4864
Cls
Print DefColor
GoSub 5092
GoSub 5615
Else
3018 i4471 = i4465
Color 5, 3
Locate 6, 29
Print "Your point to match is "
Color 3, 3
Locate 6, 52
Print String(4, "█")
Locate 6, 52
Color 15, 3
Print i4471
Do
3102 GoSub 4618
GoSub 3269
Loop Until i4465 = 7 Or i4465 = 11 Or i4465 = i4471
If i4465 = i4471 Then
GoSub 4864
Cls
Print DefColor
GoSub 5092
GoSub 5615
Else
3206 GoSub 4978
Cls
Print DefColor
GoSub 5092
GoSub 5992
End If
End If
End If
3234 GoSub 4618
Next
3263 GoSub 4689
3269 Color 15, 2
Locate 11, 13
Print "███████████"
Locate 11, 34
Print "███████████"
Locate 13, 13
Print "███████████"
Locate 13, 34
Print "███████████"
Locate 15, 13
Print "███████████"
Locate 15, 34
Print "███████████"
i4467 = Int(Rnd(1) * 6) + 1
i65528_ = i4467
If i65528_ = 1 Then
Locate 13, 18
Color 0, 0
Print " "
Else
3451 If i65528_ = 2 Then
Locate 11, 18
Color 0, 0
Print " "
Locate 15, 18
Color 0, 0
Print " "
Else
3514 If i65528_ = 3 Then
Locate 11, 18
Color 0, 0
Print " "
Locate 13, 18
Color 0, 0
Print " "
Locate 15, 18
Color 0, 0
Print " "
Else
3598 If i65528_ = 4 Then
Locate 11, 14
Color 0, 0
Print " "
Locate 11, 22
Color 0, 0
Print " "
Locate 15, 14
Color 0, 0
Print " "
Locate 15, 22
Color 0, 0
Print " "
Else
3703 If i65528_ = 5 Then
Locate 11, 14
Color 0, 0
Print " "
Locate 11, 22
Color 0, 0
Print " "
Locate 13, 18
Color 0, 0
Print " "
Locate 15, 14
Color 0, 0
Print " "
Locate 15, 22
Color 0, 0
Print " "
Else
3829 Locate 11, 14
Color 0, 0
Print " "
Locate 11, 22
Color 0, 0
Print " "
Locate 13, 14
Color 0, 0
Print " "
Locate 13, 22
Color 0, 0
Print " "
Locate 15, 14
Color 0, 0
Print " "
Locate 15, 22
Color 0, 0
Print " "
End If
End If
End If
End If
End If
3955 Delay 0.75
i4469 = Int(Rnd(1) * 6) + 1
i65526_ = i4469
If i65526_ = 1 Then
Locate 13, 39
Color 0, 0
Print " "
Else
4042 If i65526_ = 2 Then
Locate 11, 39
Color 0, 0
Print " "
Locate 15, 39
Color 0, 0
Print " "
Else
4105 If i65526_ = 3 Then
Locate 11, 39
Color 0, 0
Print " "
Locate 13, 39
Color 0, 0
Print " "
Locate 15, 39
Color 0, 0
Print " "
Else
4189 If i65526_ = 4 Then
Locate 11, 35
Color 0, 0
Print " "
Locate 11, 43
Color 0, 0
Print " "
Locate 15, 35
Color 0, 0
Print " "
Locate 15, 43
Color 0, 0
Print " "
Else
4294 If i65526_ = 5 Then
Locate 11, 35
Color 0, 0
Print " "
Locate 11, 43
Color 0, 0
Print " "
Locate 13, 39
Color 0, 0
Print " "
Locate 15, 35
Color 0, 0
Print " "
Locate 15, 43
Color 0, 0
Print " "
Else
4420 Locate 11, 35
Color 0, 0
Print " "
Locate 11, 43
Color 0, 0
Print " "
Locate 13, 35
Color 0, 0
Print " "
Locate 13, 43
Color 0, 0
Print " "
Locate 15, 35
Color 0, 0
Print " "
Locate 15, 43
Color 0, 0
Print " "
End If
End If
End If
End If
End If
4546 Delay 0.75
i4465 = i4467 + i4469
Locate 13, 57
Color 2, 2
Print " "
Locate 13, 57
Color 15, 2
Print i4465
Return
4618 Locate 19, 11
Color 0, 0
Print String(34, " ")
Locate 19, 20
Color 9, 0
If InputYesNo("Roll again? (Y/N) ", 1213417543) Then
Return
Else
4683 GoSub 4689
End If
4689 Reset
Delay 0.25
If Exists(ProgPath + "CRAPS004.BBS") Then
Print DefColor
DisplayTextFile(ProgPath + "CRAPS004.BBS")
Else
4746 Color 13, 0
Print DefColor
Print "CRAPS004.BBS not found."
Beep
Delay 0.25
Beep
Delay 0.25
Beep
Delay 2
End If
4801 CurrentDateTime dt4829
s4749 = NodeInfo.CallersName + " left the CRAPS DOOR at " + FormatTime(dt4829.T, "Hh:MM:Ss") + "."
ActivityLog s4749
End
4864 If Exists(ProgPath + "CRAPS001.BBS") Then
Cls
Print DefColor
DisplayTextFile(ProgPath + "CRAPS001.BBS")
Cls
Else
4916 Color 13, 0
Print DefColor
Print "CRAPS001.BBS not found."
Beep
Delay 0.25
Beep
Delay 0.25
Beep
Delay 2
GoSub 4689
End If
4977 Return
4978 If Exists(ProgPath + "CRAPS002.BBS") Then
Cls
Print DefColor
DisplayTextFile(ProgPath + "CRAPS002.BBS")
Cls
Else
5030 Color 13, 0
Print DefColor
Print "CRAPS002.BBS not found."
Beep
Delay 0.25
Beep
Delay 0.25
Beep
Delay 2
GoSub 4689
End If
5091 Return
5092 Cls
Color 13, 0
Print DefColor
If Exists(ProgPath + "CRAPS003.BBS") Then
DisplayTextFile(ProgPath + "CRAPS003.BBS")
Else
5147 Print "PUT ALL THE CRAPS GAME FILES IN THE SAME DIRECTORY!"
Beep
Delay 0.25
Beep
Delay 0.25
Beep
Delay 2
GoSub 4689
End If
5195 Locate 3, 27
Color 1, 3
Print "Welcome to the craps table,"
i5382 = 40 - Len(NodeInfo.CallersName) Div 2
Locate 4, i5382
Color 15, 3
Print NodeInfo.CallersName
Locate 12, 74
Color 7, 7
Print String(3, "█")
Locate 12, 74
Color 0, 7
Print i4500
Locate 16, 74
Color 7, 7
Print String(3, "█")
Locate 16, 74
Color 0, 7
Print i4502
Locate 20, 72
Color 2, 2
Print String(5, "█")
Locate 20, 72
Color 0, 2
Print TimeLeft
Locate 22, 2
Color 4, 2
s4983 = "As a magnanamous gesture, " + s4534 + "will let you win up to " + Str(i4837) + " minutes."
Print Tab(40 - Len(s4983) Div 2); s4983
If s4851 = "YES" Then
s5384 = "Your bet per game is " + Str(i4667) + " minutes."
Else
5563 s5384 = "Your bet per game is 5 minutes."
End If
5572 Locate 23, 2
Color 15, 2
Print Tab(40 - Len(s5384) Div 2); s5384
Return
5615 i4500 = i4500 + 1
If s4651 = "true" And s4851 = "yes" Then
i4659 = TimeLeft + i4667
Else
5684 i4659 = TimeLeft + 5
End If
5696 If i4659 > i4837 Then
Cls
Print DefColor
Locate 12, 1
Color 13, 0
Print Tab(40 - Len("Sorry Charlie. You can't win more than your") Div 2); "Sorry Charlie. You can't win more than your"
Print Tab(40 - Len("Security Profile's MAX daily time limit.") Div 2); "Security Profile's MAX daily time limit."
i4657 = i4837 - TimeLeft
AddTime i4657
Delay 2
GoSub 4689
Else
5840 Locate 20, 72
Color 2, 2
Print String(5, "█")
Locate 20, 72
Color 0, 2
If s4651 = "true" And s4851 = "yes" Then
AddTime i4667
Else
5929 AddTime 5
End If
5934 Print TimeLeft
Locate 12, 74
Color 7, 7
Print String(3, "█")
Locate 12, 74
Color 0, 7
Print i4500
End If
5991 Return
5992 i4502 = i4502 + 1
Locate 20, 72
Color 2, 2
Print String(5, "█")
Locate 20, 72
Color 0, 2
If s4651 = "true" And s4851 = "yes" Then
AddTime - i4667
Else
6097 AddTime - 5
End If
6104 Print TimeLeft
Locate 16, 74
Color 7, 7
Print String(3, "█")
Locate 16, 74
Color 0, 7
Print i4502
If TimeLeft < 5 Then
Cls
Locate 12, 1
Color 13, 0
Print Tab(40 - Len("You're outa luck! No time left to gamble.") Div 2); "You're outa luck! No time left to gamble."
Delay 2
GoSub 4689
End If
6234 Return
'! Called 1 time
Function Func6275 As Integer
Dim i65524 As Integer
Dim s65526 As String
Print "Hit ENTER to roll the dice.";
Do
6293 s65526 = InKey(1213417543)
i65524 = InStr(Chr(13) , s65526) <> 0
Loop Until i65524
Func6275 = Asc(s65526)
End Function